package com.ruoyi.system.api.service;

import com.ruoyi.system.api.ResponseWithData;
import com.ruoyi.system.api.domain.Login;
import com.ruoyi.system.domain.SysUser;

public interface LoginService {

    /**
     * 用户登陆
     * @methodName: login
     * @description: TODO
     * @param login
     * @return: com.ruoyi.system.api.ResponseWithData<?>
     * @author: shihx
     * @date: 2020/2/24 16:32
    **/
    public ResponseWithData<?> login(Login login, SysUser sysUser) throws Exception;

    /**
     * 获取用户授权（ACCESS_TOKEN）接口
     * @methodName: authorization
     * @description: TODO
     * @param ApiKey
     * @return: com.ruoyi.system.api.ResponseWithData<?>
     * @author: shihx
     * @date: 2020/2/28 9:57
    **/
    public ResponseWithData<?> authorization(String ApiKey) throws Exception;

    /**
     * 获取用户授权（ACCESS_TOKEN）接口 APP端使用
     * @methodName: authorizationApp
     * @description: TODO
     * @param ApiKey
     * @return: com.ruoyi.system.api.ResponseWithData<?>
     * @author: shihx
     * @date: 2020-04-08 8:53
    **/
    public ResponseWithData<?> authorizationApp(String ApiKey) throws Exception;


}
